package com.xu.sso.core.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(ignoreInvalidFields = true)
public class SystemConfig {

    @Value("${com.xu.sso.mail.suffix:}")
    private String mailSuffix;
    @Value("${com.xu.sso.redis.host}")
    private String host;
    @Value("${com.xu.sso.redis.password:}")
    private String password;
    @Value("${com.xu.sso.redis.database:0}")
    private Integer database;
    @Value("${com.xu.sso.redis.masterId:mymaster}")
    private String masterId;
    @Value("${spring.mail.username}")
    private String mailFrom;

}
